import SwiftUI

struct StatusBadge: View {
    var status: String
    var color: Color = .orange
    var body: some View {
        Text(status)
            .font(.caption2)
            .padding(.horizontal, 8)
            .padding(.vertical, 4)
            .background(color.opacity(0.15))
            .foregroundColor(color)
            .cornerRadius(8)
    }
}

#Preview {
    StatusBadge(status: "已完成", color: .orange)
} 